import request from "../utils/request";

/**
 * 云挖矿产品
 * @returns 
 */
export function cloudList() {
  return request({
    url: "/cloud/list",
    method: "get"
  });
}

export function cloudApply(parameter) {
  return request({
    url: "/cloud/apply",
    method: "post",
    data: parameter
  });
}

/**
 * 申购列表
 * @returns {*}
 */
export function cloudMy() {
  return request({
    url: "/cloud/my",
    method: "post"
  });
}
export function cloudWithdraw(id) {
  return request({
    url: "/cloud/withdraw/" + id,
    method: "posts"
  });
}
